package com.bdc.service.imp;

import java.util.ArrayList;
import java.util.List;

import com.bdc.bean.TabConf;
import com.bdc.service.ConfService;
import static com.bdc.util.PropertiesUtil.*;
import static com.bdc.util.ResourceUtil.*;

public class ConfServiceImp implements ConfService {

	@Override
	public List<TabConf> getTabConfs() {
		List<TabConf> tabConfs = new ArrayList<TabConf>();
		int tabCount = Integer.parseInt(getVal("conf", "tab.count"));
		for(int i = 0; i < tabCount; i++) {
			tabConfs.add(new TabConf(getVal("conf", getTabTypeKey(i)), getVal("conf",getTabTitleKey(i))));
		}
		return tabConfs;
	}

}
